/*
 Designer: DaBai 
 E-mail: jamesbaicn@gmail.com
 Last Modified: #2010-01-19 18:54#
 License: GNU GENERAL PUBLIC LICENSE Version 3

 User Timer0 for PCA, PCA0 and PCA1 for L297N Input, interrupt 1 and 7 include
 PCA0->X, PCA1->Y, 1->LEFT OR DOWN, 0->RIGHT OR UP
*/
#ifndef __drivepwm__
#define __drivepwm__
extern unsigned char pca0_Count,pca1_Count;
extern bit pwmRunning;
sbit CW0 = P1^1;
sbit CW1 = P1^2;
void InitPWM(void);
void SetPWM(bit dt0, unsigned char ch0_step,bit dt1, unsigned char ch1_step);
void timer0(void);
void PCA(void);

#endif